
<%@ page import="union.PerfilCompetencia"%>
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'perfilCompetencia.label', default: 'Perfil da Competência')}" />
<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
	<div class="nav" role="navigation">
		<ul class="nav nav-pills">
			<g:permissao devePossuir="true" controles="perfilCompetencia"
				acoes="list">
				<li class="active"><g:link class="list" action="list">
						<i class="icon-list-alt"></i>
						<g:message code="default.list.label" args="[entityName]" />
					</g:link></li>
			</g:permissao>
			<li class="divider-vertical"></li>
			<g:permissao devePossuir="true" controles="perfilCompetencia"
				acoes="list">
				<li><g:link action="create">
						<i class="icon-file"></i>
						<g:message code="default.add.label" args="[entityName]" />
					</g:link></li>
			</g:permissao>
		</ul>
	</div>
	<div id="list-perfilCompetencia" class="content scaffold-list"
		role="main">
		<legend>
			<g:message code="default.list.label" args="[entityName]" />
		</legend>
		<mensagem:renderizar mensagem="${flash}" />
		<table
			class="table table-hover table-condensed table-striped table-blue">
			<thead>
				<tr>
					<th></th>
					<th></th>

					<g:sortableColumn property="nome"
						title="${message(code: 'perfilCompetencia.nome.label', default: 'Nome')}" />

					<g:sortableColumn property="descricao"
						title="${message(code: 'perfilCompetencia.descricao.label', default: 'Descrição')}" />

					<g:sortableColumn property="atende"
						title="${message(code: 'perfilCompetencia.atende.label', default: 'Tipo')}" />
				</tr>
			</thead>
			<tbody>
				<g:each in="${perfilCompetenciaInstanceList}" status="i"
					var="perfilCompetenciaInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

						<td><g:link action="show"
								id="${perfilCompetenciaInstance.id}">
								<i class="icon-eye-open"></i>
							</g:link></td>
						<td><g:link action="edit"
								id="${perfilCompetenciaInstance.id}">
								<i class="icon-edit"></i>
							</g:link></td>
						<td><g:link action="show"
								id="${perfilCompetenciaInstance.id}">
								${fieldValue(bean: perfilCompetenciaInstance, field: "nome")}
							</g:link></td>

						<td>
							${fieldValue(bean: perfilCompetenciaInstance, field: "descricao")}
						</td>
						<td><g:formatBoolean
								boolean="${perfilCompetenciaInstance.atende}" true="Atende" false="Não Atende" /></td>
					</tr>
				</g:each>
			</tbody>
		</table>
		<div class="paginationGrails">
			<g:paginate total="${perfilCompetenciaInstanceTotal}" />
		</div>
	</div>
</body>
</html>
